include ../includes/head
block content
    include ../includes/header
.container-fluid
    .row
        include ../includes/slide
        .col-sm-9.col-sm-offset-3.col-md-10.col-md-offset-2.main
            .row
              - if (!denied)
                .col-sm-12
                    h1.page-header 摄像机列表
                //- .col-sm-1
                    a.btn.btn-success(href='/camera/add') 添加摄像机
              - else
                 h2.page-header 没有权限
            - if (!denied)
              .row
                .table-responsive
                    table.table.table-bordered
                        caption 下表为所有摄像机列表
                        thead
                            tr
                                th  序号
                                th  摄像机名称
                                th  摄像机ID
                                th  摄像机key
                                th  所属项目
                                th  操作
                        if (result)
                            each item, index in result
                                if(item)
                                    tr.list_tr
                                        td #{index + 1}
                                        td #{item.cname}
                                        td #{item.equip_id}
                                        td #{item.key}
                                        td #{item.pname}
                                        td
                                            a.delBtn(href='javascript:void(0);' data-id='#{item.id}' data-type='camera')  删除
                                                span.glyphicon.glyphicon-remove
                                            a.editBtn(href='/camera/edit/#{item.id}' data-id='#{item.id}') 编辑
                                                span.glyphicon.glyphicon-edit
include ../includes/footer
script(src='/requirejs/require.js' data-main="/javascript/camera/list")
